﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace ScriptBox
{
    /// <summary>
    /// About.xaml 的交互逻辑
    /// </summary>
    public partial class About : Window
    {
        public string SWVersion { get; set; }
        public About(string version)
        {
            InitializeComponent();
            SWVersion = version;
            DataContext = this;
        }
        private void Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e)
        {
            // 在默认浏览器中打开链接
            Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));

            // 停止 Hyperlink 控件自动处理链接
            e.Handled = true;
        }
    }
}
